.class Lcom/waiqin365/base/login/cx;
.super Landroid/widget/BaseAdapter;


# instance fields
.field public a:Ljava/util/LinkedHashMap;

.field final synthetic b:Lcom/waiqin365/base/login/LoginShortcutActivity;

.field private c:Landroid/content/Context;


# direct methods
.method public constructor <init>(Lcom/waiqin365/base/login/LoginShortcutActivity;Landroid/content/Context;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/LinkedHashMap;

    invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/login/cx;->a:Ljava/util/LinkedHashMap;

    iput-object p2, p0, Lcom/waiqin365/base/login/cx;->c:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/login/cx;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->c:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 8

    const/4 v3, 0x0

    const/16 v7, 0xcc

    const/16 v6, 0x8

    const/4 v5, 0x0

    if-nez p2, :cond_5

    new-instance v1, Lcom/waiqin365/base/login/da;

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    invoke-direct {v1, v0, v3}, Lcom/waiqin365/base/login/da;-><init>(Lcom/waiqin365/base/login/LoginShortcutActivity;Lcom/waiqin365/base/login/cw;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->c:Landroid/content/Context;

    const v2, 0x7f03022d

    invoke-static {v0, v2, v3}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c0b26

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->a:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c0b27

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0b28

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->c:Landroid/widget/ImageView;

    const v0, 0x7f0c0b29

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0b2b

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    const v0, 0x7f0c0b2c

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->f:Landroid/view/View;

    const v0, 0x7f0c0b2d

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->g:Landroid/view/View;

    const v0, 0x7f0c0b2a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, v1, Lcom/waiqin365/base/login/da;->h:Landroid/widget/RelativeLayout;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v2, v1

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge p1, v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/g;

    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginShortcutActivity;->b:Ljava/util/ArrayList;

    iget v3, v0, Lcom/waiqin365/base/login/c/g;->k:I

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/login/c/b;

    iget-object v1, v1, Lcom/waiqin365/base/login/c/b;->b:Ljava/lang/String;

    if-lez p1, :cond_6

    iget v3, v0, Lcom/waiqin365/base/login/c/g;->k:I

    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    add-int/lit8 v4, p1, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/login/c/g;

    iget v1, v1, Lcom/waiqin365/base/login/c/g;->k:I

    if-eq v3, v1, :cond_6

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->b:Landroid/widget/TextView;

    const-string/jumbo v3, ""

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->g:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->f:Landroid/view/View;

    invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ge p1, v1, :cond_0

    iget v3, v0, Lcom/waiqin365/base/login/c/g;->k:I

    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    add-int/lit8 v4, p1, 0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/login/c/g;

    iget v1, v1, Lcom/waiqin365/base/login/c/g;->k:I

    if-ne v3, v1, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginShortcutActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne p1, v1, :cond_2

    :cond_1
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->f:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->g:Landroid/view/View;

    invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V

    :cond_2
    if-eqz v2, :cond_3

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->d:Landroid/widget/TextView;

    if-eqz v1, :cond_3

    iget-object v1, v0, Lcom/waiqin365/base/login/c/g;->b:Ljava/lang/String;

    iget-object v3, v2, Lcom/waiqin365/base/login/da;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_3
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/base/login/c/g;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/cx;->a:Ljava/util/LinkedHashMap;

    iget-object v3, v0, Lcom/waiqin365/base/login/c/g;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/util/LinkedHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_7

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    const v4, 0x7f08001e

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/login/LoginShortcutActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    invoke-static {v7, v7, v7}, Landroid/graphics/Color;->rgb(III)I

    move-result v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setBackgroundColor(I)V

    :goto_2
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    new-instance v3, Lcom/waiqin365/base/login/cy;

    invoke-direct {v3, p0}, Lcom/waiqin365/base/login/cy;-><init>(Lcom/waiqin365/base/login/cx;)V

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Lcom/waiqin365/base/login/cz;

    invoke-direct {v1, p0, v0}, Lcom/waiqin365/base/login/cz;-><init>(Lcom/waiqin365/base/login/cx;Lcom/waiqin365/base/login/c/g;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz v2, :cond_4

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->c:Landroid/widget/ImageView;

    if-eqz v1, :cond_4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/c/b;->g()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v3, "apps"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v3, "/"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v3

    iget-object v3, v3, Lcom/fiberhome/gaea/client/c/b;->e:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v3, "/image/"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/base/login/c/g;->d:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_8

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->c:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_4
    :goto_3
    return-object p2

    :cond_5
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/da;

    move-object v2, v0

    goto/16 :goto_0

    :cond_6
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto/16 :goto_1

    :cond_7
    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/base/login/cx;->b:Lcom/waiqin365/base/login/LoginShortcutActivity;

    const v4, 0x7f0800ce

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/login/LoginShortcutActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    const/16 v3, 0x12

    const/16 v4, 0x97

    const/16 v5, 0xff

    invoke-static {v3, v4, v5}, Landroid/graphics/Color;->rgb(III)I

    move-result v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, v2, Lcom/waiqin365/base/login/da;->e:Landroid/widget/TextView;

    const v3, 0x7f0200de

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    goto/16 :goto_2

    :cond_8
    iget-object v0, v2, Lcom/waiqin365/base/login/da;->c:Landroid/widget/ImageView;

    const v1, 0x7f0200ee

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_3
.end method
